﻿@model vngoodlife.Article

@*Site map*@
@*<div class="article">@{Html.RenderAction("MenuSiteMap", "MenuList", new { menuListID = ViewBag.ArticleTypeID });}</div>*@

@*beging details article*@
<div class="articlescontent">
    <h2>@Model.Title </h2>
    <div class="table">
        <div class="postnews">@*bởi <a href="#">@Model.MemberName</a>*@  @vngoodlife.Util.GeneralClass.BuildDateTimeString(Model.CreateDate)</div>
        <div class="view">Lượt xem: @Model.ViewNumber</div>

        @*<div class="like"><a href="#">Thích bài này</a></div>*@

         <!-- AddThis Button BEGIN -->
        <div class="addthis_toolbox addthis_default_style " style="float: right;padding: 4px 0px 0px 0px;">
        
            <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
            <a class="addthis_button_tweet" style="width:80px;"></a>
            <a class="addthis_button_google_plusone" g:plusone:size="medium" style="width:60px;"></a>
            <a class="addthis_counter addthis_pill_style"></a>

        </div>
        <script type="text/javascript">            var addthis_config = { "data_track_addressbar": true };</script>
        <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-510f5ef1566ff764"></script>
        <!-- AddThis Button END -->     

    </div>
    @Html.Raw(Model.Content)
</div>
@*end details article*@

<div class="share">
        <!-- AddThis Button BEGIN -->
        <div class="addthis_toolbox addthis_default_style ">
        
            <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
            <a class="addthis_button_tweet" style="width:80px;"></a>
            <a class="addthis_button_google_plusone" g:plusone:size="medium" style="width:60px;"></a>
            <a class="addthis_counter addthis_pill_style"></a>

        </div>
     @*   <script type="text/javascript"> var addthis_config = { "data_track_addressbar": true };</script>
        <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-510f5ef1566ff764"></script>*@
        <!-- AddThis Button END -->          
</div>
        @{ IQueryable<vngoodlife.Article> sub = ViewBag.SubjectArticle; }
        @if (sub.Count() > 0)
        {
            <div class="articlemore">
                <h2>Kỳ : <a href="@Url.RouteUrl("SubjectFrontend", new { subjectSeoUrl = Model.ArticleSubject.ArtSubjectSeoUrl })" > @Model.ArticleSubject.ArtSubjectName </a></h2>            
            </div>
            foreach (var item in sub)
            {
               <div class="link-more">
               <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = item.ArticleSeoUrl })">@item.Title
               <span>(@String.Format(vngoodlife.Util.ConstantClass._partialDateTimeFormat, item.CreateDate))</span>
               </a>
               </div>
            }
        }
        
        @*begin article more*@
        @{ IQueryable<vngoodlife.Related_Article> re = ViewBag.RelatedArticle; }
         @if (re.Count() > 0)
         {
             <div class="articlemore">
                <h2>Bài viết liên quan :</h2>
            </div>
             foreach (var item in re)
             {
                 if (item.ArticleID == Model.ArticleID)
                 {
                     <div class="link-more">
                     <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = item.RelatedArticle.ArticleSeoUrl })">@item.RelatedArticle.Title
                     <span>(@String.Format(vngoodlife.Util.ConstantClass._partialDateTimeFormat, item.RelatedArticle.CreateDate))</span>
                     </a>
                     </div>
                 }
                 else
                 {
                     <div class="link-more">
                     <a href="@Url.RouteUrl("ArticleDetailFrontend", new { articleSeoUrl = item.Article.ArticleSeoUrl })">@item.Article.Title
                     <span>(@String.Format(vngoodlife.Util.ConstantClass._partialDateTimeFormat, item.Article.CreateDate))</span>
                     </a>
                     </div>
                 }
             }
         }
        @*<div class="articlemore">
            <h2>Bài viết liên quan:</h2>            
        </div>
        <div class="link-more"><a href="#">Bài viết liên quan 1 Bài viết liên quan 1 Bài viết liên quan 1 Bài viết liên quan 1... <span>(13/07/2012)</span></a></div>
        <div class="link-more"><a href="#">Bài viết liên quan 1 <span>(13/07/2012)</span></a></div>
        <div class="link-more"><a href="#">Bài viết liên quan 1 Bài viết liên quan 1 Bài viết liên quan 1 Bài viết liên quan 1... <span>(13/07/2012)</span></a></div>
        <div class="link-more"><a href="#">Bài viết liên quan 1 <span>(13/07/2012)</span></a></div>*@

        @*end article more*@

        @*beging tag*@
        @{ IQueryable<vngoodlife.Article_Tag> tags = ViewBag.OneArticleTagList; }
        @if (tags.Count() > 0)
        {
        <div class="tags">
            <span>Tags:</span>
            @foreach (var item in tags)
            {
               <a href="@Url.RouteUrl("TagsFrontend", new { tagsSeoUrl = item.Tag.TagSeoUrl })" target="_blank">@item.Tag.TagName</a> 
            }
        </div>
        }
        @*end tag*@